<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="debug.debug_handlers_listener.class">Symfony\Component\HttpKernel\EventListener\DebugHandlersListener</parameter>
        <parameter key="debug.stopwatch.class">Symfony\Component\Stopwatch\Stopwatch</parameter>
        <parameter key="debug.error_handler.throw_at">0</parameter>
    </parameters>

    <services>
        <service id="debug.debug_handlers_listener" class="%debug.debug_handlers_listener.class%">
            <tag name="kernel.event_subscriber" />
            <tag name="monolog.logger" channel="php" />
            <argument /><!-- Exception handler -->
            <argument type="service" id="logger" on-invalid="null" />
            <argument /><!-- Log levels map for enabled error levels -->
            <argument>null</argument>
            <argument>true</argument>
            <argument>null</argument><!-- %templating.helper.code.file_link_format% -->
        </service>

        <service id="debug.stopwatch" class="%debug.stopwatch.class%" />
    </services>
</container>
